
namespace PORTING_BYTEORDER_SIZE {
unsigned short foo(int socket)
{
	int len;
	unsigned short val = 0;
	len = read(socket, &val, sizeof(unsigned short));
	if (len == sizeof(unsigned short))
		val = ntohl(val);
	return val;
}

unsigned short foo(int socket)
{
	int len;
	unsigned short val = 0;
	len = read(socket, &val, sizeof(unsigned short));
	if (len == sizeof(unsigned short))
		val = ntohs(val);
	return val;
}
}